[NAME] ALL.dao.type.string.method.replace [TITLE] replace( self :string ) [DESCRIPTION] 1 replace( self :string, str1 :string, str2 :string, index = 0 ) Replace the index-th occurrence of substring str1 to substring str2; the index starts from 1, which means the first, and 0 means all. 1 replace( self :string, table :map<string,string>, max = 0 ) Replace the occurrence of the keys of table by the corresponding values. If max is zero, replace the shorter key first, otherwise, replace the longer first.