fixed typo in comments
avoid modifying module var by just passing the substring to the append