The \b's can be changed to lookbehind and lookahead assentions, (?<=\s|^) and (?=\s|$)