Remove punctuations from tail and head of the given word
Refactoring soruce code to be more readable and testable (on going)