How To Edit a String
Could someone please tell me how I can take a string of letters that is input and edit it to make sure there are now letters that are not appropriate.
Say someone enters: "TAZGCAACCCGGB"
I want to eliminate any letters other than A, C, G, or T. Then I want to print the sequence out in triplets with spaces in between in three letters: "TAG CAA CCC GG"
Thanking you in advance,
Little Shell
|