move remove_whitespace method to goal.rb and add it to goals controller