str = "0000000this is string 0000example....wow!!!0000000"; print str.strip( '0' );

输出结果中间部分的 0 还是存在的:

this is string 0000example....wow!!!
sc14303