Moved removeTrailingSpace to the correct place