take a copy of string value with vpi_get_value as any subsequent calls will overwrite