Replacing String.split call to complied regex pattern.