Skip dangling commas in search