Throw TypeError when regex is passed to String#startsWith and String#endsWith

Closes #167