check if entered dimension is an integer