String Fixer Code: char *StringFix ( char* string ) { char dist[512]; sprintf( dist, " %s", string ); return dist; } That just add the spaces in back of Item.