Quick fix: year cannot be trimmed if it's not a string.