Ways of looking at the first few characters of a string?
If I have a string, but only want to test the first few characters of it, how could I do this?
For instance, if the string was "hello" how could I test that the first 3 characters are "hel"
Obviously I could convert to an array of chars but I think this is a messy solution.
Thanks

