Attempt at improving replace module a bit. Only one RegEx, bit more explanatory var names, made list of messages private.