adjusting cast for trimStrings Option.