Returns 0 when passed an empty string