Don't do the replace but instead change the pattern to use plusses. Also, pull the pattern out and compile it in the class.