Removing spaces and echos