Small optimisation in setRestricted & fixed addstring.sh
Merge pull request #871 from jpeg729/options

Small optimisation in setRestricted & fixed addstring.sh