remove_whitespace (HighLine::Question)

    # File lib/highline/question.rb, line 392
        def remove_whitespace( answer_string )
          if @whitespace.nil?
            answer_string
          elsif [:strip, :chomp].include?(@whitespace)
            answer_string.send(@whitespace)
          elsif @whitespace == :collapse
            answer_string.gsub(/\s+/, " ")
          elsif [:strip_and_collapse, :chomp_and_collapse].include?(@whitespace)
            result = answer_string.send(@whitespace.to_s[/^[a-z]+/])
            result.gsub(/\s+/, " ")
          elsif @whitespace == :remove
            answer_string.gsub(/\s+/, "")
          else
            answer_string
          end
        end