remove regex/boost regex usage