Fix a bug in StringUtils

Make the list.toArray method works properly.