= new File("d:/temp/t.txt")
if(f.exists()){
    f.eachLine{ line
->
        line 
= line.trim()
        String[] elems 
= line.split('_')
        
for(int i = 0; i < elems.length; i++){
            elems[i] 
= elems[i].toLowerCase()
            
if(i != 0){
                String elem 
= elems[i]
                
char first = elem[0] as char
                elems[i] 
= "" + (char)(first - 32+ elem.substring(1)
            }
        }
        println elems.join()
    }
}