in reply to "2" | "8" = ":" and 2|8=10

Should there? When it does matter, you can and should force the correct interpretation of the variable

PS: To force an integer to be interpreted as a string use "$n"