def ucwords(str = nil)
      return '' if str.blank?
      str.split(' ').select {|w| w.capitalize! || w }.join(' ')
    end
def ucwords(str = nil)
      return '' if str.blank?
      str.split(' ').select {|w| w.capitalize! || w }.join(' ')
    end
capitalizes all words in a string
 Params:
 +str+:: the string