fixed silly bug and removed debuging output from regexInPlace