You could instead just use the replaceAll() method. Using the split() method, as stated above, will return an array of strings.