Add slah every 2 characters in java code example
Example 1: java split for multiple characters
String input = "Hi,X How-how are:any you?";
String[] parts = input.split("[\\W]");
Example 2: java replaceall single character
.replaceAll("(?<!\\S)[^ ](?!\\S)", " ").trim()