Normalize strings wrt DB queries