def reverseWords( str ) { str.split('\\s+'). findAll {it.length() > 0}. reverse().join(' ') }