s=System.in.text L=s.size() n=L>>1 s.any{i=n.abs()-1;println n--?"$it${b=" "*i}$it$b$it".center(L," "):s}
Note that non-ascii characters in the above source code will be escaped (such as \x9f).
download
return to the top page