added capital and lowercase function
add total num val