JavaScript use regular expressions(regex) replaces words encounter Whitespace issues

welcome to shbcf.ru