Javascript Replace Part Of String Python Example