Completed ReplaceSpaces