Added extansions

Added extansions to handle string nullness and emptiness