InputConfigFragment: Use a StringBuilder for string concatenation

This is the recommended way to join strings, since it doesn't destroy and recreate the string repeatedly.