trimming input
escaping reserved words