Better way to detect '-character.