Kotlin String replaceFirst Function
The replaceFirst function in Kotlin is used to replace the first occurrence of a specified substring or character with another substring or character. This function belongs to the String class in the Kotlin standard library and provides a straightforward way to perform a single replacement operation within a string.