Remove trailing whitespace and rename @proc as @process