added System out so can find job details in log, also trimming white spaces in emails