added quote character escape in function AgentGetParameterArg