Get a string whilst ignoring the empty values