Added white-space stripping and a full working example