made integer vs. string functionality more consistent