Change InputManager to use string (not char*) + detect empty line