Use heredoc
Remove unwanted character
Fix parent identification