This was because of the Tab used in the editor. Replaced it with space delimiter and corrected the indentation.