strip some lines and print all lines to upper case