Hello daniilprokh,
Welcome to the forum.
My guess, the computer think the string is missing a something (or a number) after the symbol.
'-5'
'+7'
'$3''
The 5, 7 and 3 are in the second position. That's why the computer said there's something wrong in the position no 2.