Cleaner extraction of strings