Modified the string split routine to avoid causing a buffer overflow with extensions over 10 characters long