Adding the function which can mao scala list sot the capitalize funbction