added a sanatize function to remove special characters form subject and object