Fix so the regexp works using StringValue's value