private fun normalizeName(name: String): String? { var name: String? = name name = name?.trim { it <= ' ' } ?: "" return if (name.isEmpty()) MISSING_NAME else name }
Normalizes a name to something OpenMRS will accept .