Kotlin文字列startsWith
contains

startsWith文字列

endsWith

指定したプレフィックスで始まるか確認します。

構文

str.startsWith(prefix)