LEN function

Is there something I’m doing wrong with the LEN function? I’ve got an IVR that I’d like to check the number of digits entered, but the LEN function always returns 10. This is the asterisk 1.8.1-rc1.

exten=>s,n(Enter_Number),Read(Number,enter_number,17,3,15)
exten=>s,n,GoToIf([${LEN(Number)} != 16]?incorrect_number)

Figured it out. I left out a set of curly braces around the variable.

exten=>s,n(Enter_Number),Read(Number,enter_number,17,3,15)
exten=>s,n,GoToIf($[${LEN(${Number})} != 16]?incorrect_number)