properties of a string object

When creating a string variable

$a="aaa"
if I run $a, powershell prints out the string value. But how it this output actually derived? When doing get-member, I don't see any properties which point to the string value.

@Garegin Asatryan, please go through the link below, in the description section you will find what you are looking for…

https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/out-default?view=powershell-7

Thank you.

There is a character array:

'hi' | gm chars


   TypeName: System.String

Name  MemberType            Definition
----  ----------            ----------
Chars ParameterizedProperty char Chars(int index) {get;}