Syntax checking for immediate length