Submitted comments

Added trim() to comments to improve detection of empty comments.