applied script to remove white spaces