Fixes #5058: add method to ensure lhs=rhs in files

Please update the description and parameter docs to use "key" instead of LHS and "value" instead of RHS.

Also the doc for the "keys" parameters doesn't make sense ("with where"...)