public String(value as Object):
Builds a string from any object by using its textual representation. The result has independent mutable storage, including when value is already a String or its toString method returns an existing string.
| Parameter | Description |
|---|---|
value | Source object. When null, the created string is "null". |
source = String("klyn")
copy = String(source)
copy[0] = 'K'
assert source == "klyn"
assert copy == "Klyn"