Add error checking on S config

The crypto text needs to be between exactly two S