Removing spaces in code