Careful with the naming to parameters. str in redundant, no need to describe the object type in the variable name. Also src - assuming this is short for source, we can just used the full word here. The byte code isn't going to be much bigger.