use parameter expansion for stdin
Merge pull request #32 from buhman/parameter-expansion

use parameter expansion for stdin