Matching tailing characters as well