Cast status code string to integer with whitespace fixes.