fix issue #128 fix unexpected result from untrimmed parsed string value and add trimString utility function