Updated object controller to strip non digts from numerical attribute type