Working with RegEx and Immutable DataTypes