Rewrite of heredoc part