reduce code duplication (ongoing)
get_value(): use strtrim()
document -r
reordering