input case handling