Trim leading and trailing whitespace when displaying messages

Closes #326
This commit is contained in:
Torsten Grote
2016-06-28 17:01:41 -03:00
parent f270624f39
commit 123f59cd96
3 changed files with 9 additions and 4 deletions

View File

@@ -82,4 +82,8 @@ public class StringUtils {
if (c >= 'a' && c <= 'f') return c - 'a' + 10;
throw new IllegalArgumentException("Not a hex digit: " + c);
}
public static String trim(String s) {
return s.trim();
}
}