Perhaps it would be better to move this method to *org.jboss.forge.parser.java.util.Strings* class ?