Some more string to integer stuff and a crude checker for valid proposal