Extract First Character From String Python Functions