fixes if there is an empty string