add indexOf and lastIndexOf