#!/bin/bash

APP=$1

if [ "${APP: 0:2}" = "a/" ]; then
	APP=${APP:2}
fi

if [ "${APP: -1}" = "/" ]; then
	APP=${APP:0: -1}
fi 

echo $APP
