fixed class map generator when using a heredoc with spaces

Heredocs and nowdocs accepts spaces between `<<<` and the doc name. This PR fixes that to avoid wrong `Ambiguous class resolution` warnings.