Cleanup of extracted gem name