added patterns in a string format