try replacing part of string