downcase and strip whitespace