Correct string dectection