I used regular expressions and then I had two problems