added string sanitising
Merge branch 'dev' of https://github.com/rgrannell1/interpol into dev
improved clarity of code