Make less copies of the input string