Use slice instead of regex.