toupper with STDIN and STDOUT