Avoid sending empty strings to server