Changed if-else block to switch (blue)
Made reader case-insensitive
Made reader case-insensitive