Update readline method to have optional default value