Trim input values before testing for warnings