fix: can not match when string endwiths white space