Changing pattern to "" when no recurrance