Avoid trying to get size of empty string