add string utility test, and fix bug