Fixed newline code reading past end of arrays
Prefer anonymous namespaces to "static"
Replacers are no longer dynamically allocated