Fixed input range event
Refactored capitalize