add isSpace and startsWith methods.