Additionals: Fix pattern method when parameter is a string

Reverts 37992c1c9e2e0be8b315ccccc2acb74863439d3e

The pattern should match the entire value of the input, not just a subset.

Closes #1204