Trim spaces from field name, set current directory on filechoosers