plot_chars function

Plot text characters (from file or user input) and match patterns.