A distinctive hat leads police to a prolific gang stealing bank cards, and one careless text message puts a dangerous stalker behind bars for the longest sentence in a police force's history.