codeeval.com beautiful strings commit. added test for later optimization