Adding regex to string and adding tests