KotlinStringreplace
endsWith

replaceString

trim

Returns a new string with all occurrences replaced.

Syntax

str.replace(oldValue, newValue)