If using any of the type() functions, minus signs actually means hold down the button for the previous character. The solution is to put a backslash character '\' before the minus sign. This also applies to + < >.
[Source: JAGAN MOHAN "Interview questions bible"]
[Source: JAGAN MOHAN "Interview questions bible"]