Strange enough but this did not pose any problem for me. I just made name and location filters the editable comboboxes. Both are filled with distinct values from name and location columns of the database. This way the user does not have to type spaces, and I do not have to guess whether the value is padded with spaces, or it really has spaces as part of the value. No trimming and everybody's happy