Strip empty lines when preprocessing kernels