It would be better if the `getValue` function would take care of the trimming for strings