Simple project to extract, validate and write a string to file