Handled edge case in location_in_words method