update strip_heredoc def