removes AWS variables from the main text