fix bug with blank string