replaceSpaces not working yet