Fix variable dimensions in double-quotes and heredoc