Made action = action.toLowerCase(); cleaned up the conditional statements