fix endsWith/startsWith/indexOf etc