fixes case of empty string