trim array elements of newline
Merge branch 'valid_shells' into develop