Excessive repetition, could be folded into a general loop that looped over pairs of account input and expected string output