Check out the 'cut' program,
It is able to display only a specific column or columns in a text file, either by the specific character or by the column, like this:
# echo "this is a test" | cut -c2,3
# echo "this is a test" | cut -d" " -f3
It should solve both of your problems.