Ruby on Rails mapping and Strip trailing whitespace