Addet put function to echo safely
Added put function to echo safely
Substituted echo with put function.