added filter protection for string parameter memory