Skip to content

Glossary: Kotlin Basics

string functions

Also written: trim, uppercase, lowercase, contains, startsWith, replace, substring, length, split

Functions called on a string with a dot, such as `trim()`, `uppercase()`, `contains(...)`, `replace(...)` and `substring(...)`; `length` is a fact, not a call. They give back a new string and leave the original unchanged.

Where the book teaches it

Related terms

stringindex