Use shift instead of slice in parsing words