Working on reg ex for immutable objects