Remove redundant idx
Use ucfirst instead of ucwords