For anyone interested, you can actually make the startsWith and endsWith methods a lot faster by using strncasecmp or substr, like this:
https://github.com/Nycto/Round-Eights/blob/master/src/functi...
It could be a micro-optimization, but I find myself using these methods quite and it's a simple tweak to make.