Simplify usage of Scanner object