string methods and regex practice