Make sure to check empty values for string only (e.g. won't work with numbers)