Fix issue applying mask with trailing literal to input with initial value

Fixes #86