A database is an option, therefore you'll definitively have to read the follow page, that helped me a lot. There is also some sample code in it.
In paragraph 9.7 is the full code for adding, editing and deleting records...
An other option is saving the string in an .txt file and save that on the storage. Than this might bring you further:
Good luck!