Made replaceWordBoundary private