[misc] Use StringUtils for string manipulation
[cleanup] Improved documentation