module Converter

def convert_to_i(val)

otherwise we return the string
convert the value to an integer if we have numbers only
def convert_to_i(val)
  val = val.to_i if val =~ /^\d+$/
  val
end