What is the quotation marks [" "] in a person s name?

I often sees " " in US people s name such as Rafael Edward "Ted" Cruz and Caspar "Cap" Willard Weinberger, though I am not sure this is specific to US people or politician.

Could you please teach me what it is and the name of this way of calling if there is a specific way of calling it.
9 answers 9