When entering neutron limits, a valid symbol was converted into a number. Now fixed.

Lessen the scope of variables and tidy up string to int converion.
There is nothing specific to c++11 so no need to compile against it.
Remove unnecessary cast and assign value when variable is created.