formating empty string properly before saving

fixes #8