trim commented time and space process code