shotop: adds a function to format strings for better console output