string manipulation and regex practice