1. adjust coding style
2. add string util api