update patch to remove unused variable 'subString'. Fixed trailing whitespace
remove subString from constructor