Appends all elements yielded from results of transform function being invoked on each character of original char sequence, to the given destination. snapshot is a string. Returns the largest value according to the provided comparator Applies the given transform function to each character of the original char sequence Returns a character at the given index or the result of calling the defaultValue function if the index is out of bounds of this char sequence. Kotlin val s = """ This is my multi-line string. An array of characters is called a string. A possibility is to call the Regex constructor: Regex("a[bc]+d?") starting from the specified startIndex and optionally ignoring the case. Parses the string as a ULong number and returns the result. Returns a string having trailing characters matching the predicate removed. and puts to the destination map each group key associated with a list of corresponding values. Groups values returned by the valueTransform function applied to each character of the original char sequence Returns the index within this char sequence of the first occurrence of the specified string, I don’t know what would be the best rule the follow when removing this extra spaces, but I am sure it is possible Returns a copy of this string having its first letter lowercased using the rules of the specified locale, If this and other have no common prefix, returns the empty string. Returns the index within this string of the first occurrence of the specified character, starting from the specified startIndex. and value is the character itself. applied to each character and returns a map where each group key is associated with a list of corresponding characters. or we can call the toRegex method on a String: "a This create a very strange code or a very strange string. Swift’s approach is so much more elegant… The indentation of the string content is the same as that of the ending quotes. Performs the given action on each character, providing sequential index with the character. Enjoy the benefits of a rich ecosystem with a wide range of community libraries. starting from the specified startIndex and optionally ignoring the case. Yes I see how the current implementation can break existing code. Converts the string into a regular expression Regex with the specified set of options. Otherwise returns this string unchanged. to each character, its index in the original char sequence and current accumulator value that starts with initial value. Returns the character (Unicode code point) before the specified index. EditText Multiline