updated code to return xml as string.
snmp_community from macro.
updated regex
added comment.
if  changed condition