Implemented results showing.

Added input trimming.