Method String.range() Method range array(2:int) range(string s) Description Returns the character range of a string as an array of two elements. The first element contains the lower bound and the second the upper (both inclusive). The precision is only 8 bits, so for wide strings only character blocks are known.