Properly strip newlines in debug stuff