Break out concatenation to not use .= for better speed
Add code to reset replacements and iterator with each parse for less memory