in reply to problems with converting a string character by character

Use eq in place of ==.

But maybe you're rather looking for tr/ATGC/TACG/.  See tr.