Corrected the variable name
Implemented string resolving in vardata