$Text often contains special characters like carriage return or font style information. Is there way to see this the actual string

Maybe this script can prove to be useful to you.