String (@NotNull String id) { StringBuilder sb = new StringBuilder(id.length()); id.chars().forEach( c-> { if (c >= 'a' && c <= 'z') { sb.appendCodePoint(c); } else { sb.append('-'); } } ); return sb.toString(); }