proper string splitting