Several changes to variable conversions because of errors

The program was going through errors that corresponded to nil values in
strings, but for unknown reasons. The values work if we ignore those
checks, at this point there's no clear way to know if these changes
could cause damage later.