Use $stdin as the default input instead of STDIN

$stdin is the current default input. STDIN is just the default $stdin.