adding new python code: replaceSpaces - replaces spaces of a string with '%20'