String replacement did not work