string/binary fmt
string/binary fmt
minor fix is_valid and get_type