Added the ability to reverse the strings and find frequencies for the last 10 chars using an argument