kotlin delete everything after inded in string code example Example: java remove character from string after String result = input.split("-")[0];