You can add wildcards in string resources and populate them at runtime:
<string name="my_string">This is %1$s</string>
String fun = "fun"; context.getString(R.string.my_string, fun);