Echo final string in addition to returning it