Fix handling of commented code

In order for the role to match correctly with a role in the mapping object we need to strip spaces between the role's name and the beginning of the comment.