Fixing invalid ntriples, used PREMIS onto as test case. New func for string cleaning.