fetch app name and escape carriage returns