Add two string helper functions: startswith() and endswith()

These two will be needed to implement the wildcard support.

As the comment in the code says, I'm not too sure where would be the
right place for these two.
Implement wildcard support