adding some basic pstring() functionality