optimisation: doesn't dereference two times the first character of needle