adding check whether is strings empty or not