Trim property key and values before checking them