Added single message actions as per Issue #616
remove \n\r from trim() command for moar sharpness