fixed erroneous string index [:10] and [:5] in registering help_ and complete_ methods