triming whitespace on database insertion, table header and footer gernerated