minor fix for the getString to make it work with repetitive long string endings
use pythonistic getWS and getRequiredWS and add error raising