supprimer les espaces au début et à la fin de la chaîne java
String withSpaces = " Hi ";
String withoutSpaces = withSpaces.trim();
Determined Dingo
String withSpaces = " Hi ";
String withoutSpaces = withSpaces.trim();