Text utils by Stefan Doll, vc3@stefanVHDL.com