Simplified version with text supplied as command line arguments