Corrected typo
Performance enhancement

Using substring instead of split saves in the creation of an array on
every call.