null string handling in services