added escaped quote character patterns; corrected typos; removed unnecessary specs and \s*s