print("#New York".gsub(/(?:\s+(?=\s)|[^A-Za-z\s]+)/, ''))
Standard input is empty
New York
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!