Check If Empty String Python Replace