toString
Converts the version object to a string representation.
The string representation follows the semantic versioning format (major.minor.patch) with an additional qualifier for alpha or beta releases.
For example, "1.0.0" for a stable release, "1.0.0-alpha1" for an alpha release, and "1.0.0-beta2" for a beta release.
Return
A string representation of the version.