Adding fragment for text interpolation and hash flattening
Cleaning up var names
Simple sub for trimming all leading/trailing whitespace