Extract version string.