Refactored comment checker

refactored making use of lstrip() method to get rid of leading
whitespace