after regex in split java to remove any spaces code example
Example: how to strip spaces in java using split with other delimiters
String[] splitted = input. trim(). split("\\s*,\\s*");
String[] splitted = input. trim(). split("\\s*,\\s*");