Add trait for is_alpha and remove unused variable