Adding string length check to main REPL