And just for fun... using substr

 Code:
$server=substr(%logonserver%,3,len(%logonserver%)-6)
_________________________
(... better days ahead)