CLC-4006 Fix block messages for codes with leading zero

https://jira.ets.berkeley.edu/jira/browse/CLC-4006

In this case, I use ".to_i" rather than "Integer()" since the zero resulting from a non-numeric string is correctly handled.