Tips and tricks

Minor tips

Reading a line from the command prompt using std::io::stdin().read_line() will include the return character, remove it using trim()