format support both raw and STL strings
Merge pull request #266 from tokiloki/format

format support both raw and STL strings