added action option to trim and downcase parameters