whitespace replace functionalized