parse value to string before pass to sanitize or validation function