Fix bad spelling substitution by building replacement query from lowercased words