added a way to compare char in the string prefix

I think. I'm still adding to it.