rangeOf
Returns the index range of the first occurrence of the specified substring within this character sequence. This is useful for easily specifying ranges when applying rich text attributes.
Throws
IllegalArgumentException
if the substring is not found.