Substring (@NotNull Substring name) { int firstNotStar = 0; while (firstNotStar < name.length() && name.charAt(firstNotStar) == '*') { firstNotStar++; } return name.substring(firstNotStar).trimLeft(); }