Use LastIndex instead of Split

Avoids allocating a slice just to get the trailing part of the string