fix sformat and tostring builtin