remove wrong! string terminator detection