Trimming whitespac from input
added null/empty check in the phone number