Fix filter string for records