add-replaceWordBoundary-method

Add replaceWordBoundary method
not sure about a good name.. so make it private and we can name it whatever.. :+1: