Got rid of the extraneous local string for the type of the various patterns