toCharOrNull

Returns content as char only if the length of content is exactly 1, otherwise null.