Update strip_part method #3258

based on feedback. Added documentation about
nils as the method parameter. Renamed method
to be clearer.