add startsWith, endsWith, indexOf and lastIndexOf