replace the white space in a string