Substitua todos esses caracters em java de corda
String finalString1 = stringUnderscoresForward.replaceAll("[_/]", "-");
Colorful Copperhead
String finalString1 = stringUnderscoresForward.replaceAll("[_/]", "-");