fix string splitting if empty