This module has some functions for working with strings.
This function concats two strings.
import @string
println(string.concat('pashm', 'ak')) # pashmak
This function removes last character of a string.
println(string.remove_last('pashmak')) # pashma
This function removes first character of a string.
println(string.remove_first('pashmak')) # ashmak
This function adds a string to last of other string.
println(string.add_last('pashma', 'k'))
This function adds a string to first of other string.
println(string.add_first('ashmak', 'p'))
This function returns length of a string.
println(string.length('pashmak')) # 7
This function cuts a part of string.
println(string.cut('pashmak', 1, 4)) # ash
This function makes upper case string.
println(string.upcase('pashmak')) # PASHMAK
This function makes lower case string.
println(string.lowcase('PASHMAK')) # pashmak
This function reverses a string.
println(string.reverse('pashmak'))
This function converts any type to string.
println(string.to_str(100))
println(typeof(string.to_str(100))) # test