added mostfrequent_letters and replace_letters methods