format support both raw and STL strings