Removing spaces in the end of model names