sed 's/.*://' - Delete everything before the last colon
sed 's/:.*//' - Delete everything after the first colon
sed -e 's/^[ \t]*//' - Remove all whitespace (including TABS) from left to first character
sed -i '' -e's/[ \t]*$//' filename - Remove trailing whitespaces