Remove value.strip() calls. Useless and not working for ints and another non-string values