adding one comment about not needing to check against end of string with the pointer version