Add try/catch block to parse value assignment