String Input Bug has been Resolved by instantaiting Scanner object in the Method.